import request from '@/utils/request'

// 查询退库觅康列表
export function listMk(query) {
  return request({
    url: '/cw/retu/mk/list',
    method: 'get',
    params: query
  })
}

// 查询退库觅康详细
export function getMk(serialNum) {
  return request({
    url: '/md/mk/' + serialNum,
    method: 'get'
  })
}

// 新增退库觅康
export function addMk(data) {
  return request({
    url: '/cw/retu/mk',
    method: 'post',
    data: data
  })
}

// 修改退库觅康
export function updateMk(data) {
  return request({
    url: '/cw/retu/mk',
    method: 'put',
    data: data
  })
}

// 删除退库觅康
export function delMk(serialNum) {
  return request({
    url: '/cw/retu/mk/' + serialNum,
    method: 'delete'
  })
}
// 同步
export function cwRetuMkSync() {
  return request({
    url: '/cw/retu/mk/sync',
    method: 'get'
  })
}
